/**
 * 课程分类 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-06-06 11:33:42
 * @Copyright  AKITA
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const examromApi = {
  /**
   * 分页查询  @author  AKITA
   */
  queryPage: (param) => {
    return postRequest('/examrom/queryPage', param);
  },

  /**
   * 增加  @author  AKITA
   */
  add: (param) => {
    return postRequest('/examrom/add', param);
  },

  /**
   * 修改  @author  AKITA
   */
  update: (param) => {
    return postRequest('/examrom/update', param);
  },

  /**
   * 删除  @author  AKITA
   */
  delete: (id) => {
    return getRequest(`/examrom/delete/${id}`);
  },

  /**
   * 批量删除  @author  AKITA
   */
  batchDelete: (idList) => {
    return postRequest('/examrom/batchDelete', idList);
  },
  info: (param) => {
    return getRequest('/examrom/info/' + param);
  },

  openAll: (param) => {
    return getRequest('/examrom/openAll/' + param);
  },

  statis: (param) => {
    return postRequest('/examrom/statis', param);
  },
};

/**
 * 日历明细 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-06-06 11:34:55
 * @Copyright  AKITA
 */

export const examromaApi = {
  /**
   * 分页查询  @author  AKITA
   */
  queryPage: (param) => {
    return postRequest('/examroma/queryPage', param);
  },

  /**
   * 增加  @author  AKITA
   */
  add: (param) => {
    return postRequest('/examroma/add', param);
  },

  /**
   * 修改  @author  AKITA
   */
  update: (param) => {
    return postRequest('/examroma/update', param);
  },

  /**
   * 删除  @author  AKITA
   */
  delete: (id) => {
    return getRequest(`/examroma/delete/${id}`);
  },

  /**
   * 批量删除  @author  AKITA
   */
  batchDelete: (idList) => {
    return postRequest('/examroma/batchDelete', idList);
  },

  queryList: (id) => {
    return getRequest(`/examroma/querylist/${id}`);
  },

  batchAdd: (id, form) => {
    return postRequest(`/examroma/batchadd/${id}`, form);
  },
};

/**
 * 日历明细 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-06-06 11:36:12
 * @Copyright  AKITA
 */

export const examrombApi = {
  /**
   * 分页查询  @author  AKITA
   */
  queryPage: (param) => {
    return postRequest('/examromb/queryPage', param);
  },

  /**
   * 增加  @author  AKITA
   */
  add: (param) => {
    return postRequest('/examromb/add', param);
  },

  /**
   * 修改  @author  AKITA
   */
  update: (param) => {
    return postRequest('/examromb/update', param);
  },

  /**
   * 删除  @author  AKITA
   */
  delete: (id) => {
    return getRequest(`/examromb/delete/${id}`);
  },

  /**
   * 批量删除  @author  AKITA
   */
  batchDelete: (idList) => {
    return postRequest('/examromb/batchDelete', idList);
  },
};
